<template>
    <div>
        <el-container style="height: 100%; border: 1px solid #eee">
            <el-aside width="200px" style="background-color: rgb(238, 241, 246)">
                <el-menu router :default-openeds="['1']">
                    <el-submenu index="1">
                        <template slot="title"><i class="el-icon-setting"></i>数据库</template>
                        <el-menu-item-group>
                            <template slot="title">操作</template>
                            <el-menu-item v-for="(item,index) in $router.options.routes[0].children"
                                          :index="item.path">{{item.name}}</el-menu-item>
                        </el-menu-item-group>
                    </el-submenu>
                </el-menu>
            </el-aside>
            <el-container>
                <el-main>
                    <router-view></router-view>
                </el-main>
            </el-container>
        </el-container>
    </div>
</template>

<style>

</style>

<script>
    export default {
        name: "Ele"
    }
</script>